package com.config.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.config.dao.EquMoldDao;
import com.config.entity.EquMold;


@Service(value="equMoldService")
public class EquMoldServiceImpl implements EquMoldService{
	
	@Resource(name = "equMoldDao")
	private EquMoldDao equMoldDao;

	@Override
	public void save(EquMold entity) {
		equMoldDao.save(entity);
	}

	@Override
	public void delete(int id) {
		equMoldDao.delete(id);
		
	}

	@Override
	public void update(EquMold entity) {
		equMoldDao.update(entity);
		
	}

	@Override
	public List<EquMold> findAll() {
		
		return equMoldDao.findAll();
	}

	@Override
	public EquMold getEquMold(int id) {
		return equMoldDao.get(id);
	}

	@Override
	public List<EquMold> findByAll(int start, int limit) {
		return equMoldDao.findByAll(start, limit);
	}

	@Override
	public int countByAll() {
		return equMoldDao.countByAll();
	}

}
